package zz.demo.springCloud.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import zz.demo.springCloud.entity.User;

/**
 * Created by zhangzheng on 2017-5-27.
 */
public interface UserDao extends JpaRepository<User,Long> {
    User findByUsername(String username);
    User findById(Long id);
}
